package com.shujia.wyh.day16;

/*
        字符串反转
        举例：键盘录入”abc”		输出结果：”cba”

 */
public class StringTest5 {
    public static void main(String[] args) {
        String s = "abc";

        String res = "";

        for(int i=s.length()-1;i>=0;i--){
            res = res.concat(String.valueOf(s.charAt(i)));
        }

        System.out.println(res);

    }
}
